package com.tdkj.model.bbs;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * EjfArchiveTopic entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ejf_archive_topic", catalog = "west")
public class EjfArchiveTopic implements java.io.Serializable {

	// Fields

	private EjfArchiveTopicId id;

	// Constructors

	/** default constructor */
	public EjfArchiveTopic() {
	}

	/** full constructor */
	public EjfArchiveTopic(EjfArchiveTopicId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( { @AttributeOverride(name = "topicId", column = @Column(name = "topicID", nullable = false)), @AttributeOverride(name = "boardId", column = @Column(name = "boardID", nullable = false)), @AttributeOverride(name = "sectionId", column = @Column(name = "sectionID")),
			@AttributeOverride(name = "userId", column = @Column(name = "userID", nullable = false, length = 15)), @AttributeOverride(name = "nickname", column = @Column(name = "nickname", length = 15)), @AttributeOverride(name = "remoteIp", column = @Column(name = "remoteIP", length = 25)),
			@AttributeOverride(name = "title", column = @Column(name = "title", nullable = false, length = 100)), @AttributeOverride(name = "content", column = @Column(name = "content", length = 16777215)), @AttributeOverride(name = "reward", column = @Column(name = "reward")),
			@AttributeOverride(name = "visits", column = @Column(name = "visits")), @AttributeOverride(name = "replies", column = @Column(name = "replies")), @AttributeOverride(name = "attaches", column = @Column(name = "attaches")),
			@AttributeOverride(name = "attachIcon", column = @Column(name = "attachIcon", length = 5)), @AttributeOverride(name = "lastPostUser", column = @Column(name = "lastPostUser", nullable = false, length = 15)),
			@AttributeOverride(name = "lastNickname", column = @Column(name = "lastNickname", length = 15)), @AttributeOverride(name = "lastPostTime", column = @Column(name = "lastPostTime", length = 19)), @AttributeOverride(name = "isDigest", column = @Column(name = "isDigest", length = 1)),
			@AttributeOverride(name = "isReplyNotice", column = @Column(name = "isReplyNotice", length = 1)), @AttributeOverride(name = "isHidePost", column = @Column(name = "isHidePost", length = 1)), @AttributeOverride(name = "isSolved", column = @Column(name = "isSolved", length = 1)),
			@AttributeOverride(name = "topScope", column = @Column(name = "topScope", length = 1)), @AttributeOverride(name = "topExpireDate", column = @Column(name = "topExpireDate", length = 19)), @AttributeOverride(name = "highColor", column = @Column(name = "highColor", length = 6)),
			@AttributeOverride(name = "highExpireDate", column = @Column(name = "highExpireDate", length = 19)), @AttributeOverride(name = "state", column = @Column(name = "state", length = 1)), @AttributeOverride(name = "createTime", column = @Column(name = "createTime", length = 19)),
			@AttributeOverride(name = "updateTime", column = @Column(name = "updateTime", nullable = false, length = 19)), @AttributeOverride(name = "updateUser", column = @Column(name = "updateUser", length = 15)) })
	public EjfArchiveTopicId getId() {
		return this.id;
	}

	public void setId(EjfArchiveTopicId id) {
		this.id = id;
	}

}